package com.example.exam.entity;

import java.io.Serializable;

/**
 * 学生实体类
 */
public class Student implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private String studentId;  // 学号
    private String password;   // 密码
    private String name;       // 姓名
    private String gender;     // 性别
    private String major;      // 专业
    private String grade;      // 年级
    private String phone;      // 电话
    private String email;      // 邮箱
    private String address;    // 地址
    
    // 构造方法
    public Student() {}
    
    public Student(String studentId, String password, String name, String gender, 
                   String major, String grade, String phone, String email, String address) {
        this.studentId = studentId;
        this.password = password;
        this.name = name;
        this.gender = gender;
        this.major = major;
        this.grade = grade;
        this.phone = phone;
        this.email = email;
        this.address = address;
    }
    
    // Getters and Setters
    public String getStudentId() {
        return studentId;
    }
    
    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getGender() {
        return gender;
    }
    
    public void setGender(String gender) {
        this.gender = gender;
    }
    
    public String getMajor() {
        return major;
    }
    
    public void setMajor(String major) {
        this.major = major;
    }
    
    public String getGrade() {
        return grade;
    }
    
    public void setGrade(String grade) {
        this.grade = grade;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getAddress() {
        return address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    @Override
    public String toString() {
        return "Student{" +
                "studentId='" + studentId + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", major='" + major + '\'' +
                ", grade='" + grade + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}    